import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'BasicData_MeasuringUnit'

export interface MeasuringUnittParam {
  PageSize: number;
  PageIndex: number;
}


// 获取计量单位列表
export function ApiGetBasicData_MeasuringUnitPageListAsync(param: MeasuringUnittParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MeasuringUnit/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除计量单位
export function ApiBatchDeletionBasicData_MeasuringUnitAsync(param: MeasuringUnittParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MeasuringUnit/BatchDeletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加计量单位
export function ApiCreateBasicData_MeasuringUnitAsync(param: MeasuringUnittParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MeasuringUnit/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 修改量单位
export function ApiUpdateBasicData_MeasuringUnitAsync(param: MeasuringUnittParam) {
  return httpRequest({
    url: `${modules.basicdataModuleUrl}/MeasuringUnit/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}